// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-13

package kind

// BalanceIncome
// 余额收入.
type BalanceIncome int

const (
	BalanceIncomeYes BalanceIncome = 1
	BalanceIncomeNo  BalanceIncome = 2
)

var balanceIncomeTexts = map[BalanceIncome]string{
	BalanceIncomeYes: "收入",
	BalanceIncomeNo:  "支出",
}

func (o BalanceIncome) IsNo() bool  { return o == BalanceIncomeNo }
func (o BalanceIncome) IsYes() bool { return o == BalanceIncomeYes }

// Text
// 操作名称.
func (o BalanceIncome) Text() string {
	if str, ok := balanceIncomeTexts[o]; ok {
		return str
	}
	return ""
}
